﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WarOfDev.Services.Common
{
    using System.Web.Mvc;

    public class TaskExperienceValueCollectionCreator:ExperienceValueCollectionCreator
    {
        public TaskExperienceValueCollectionCreator()
        {
            this.AddItem(new SelectListItem() { Text = "100", Value = "100"  });
            this.AddItem(new SelectListItem() { Text = "200", Value = "200" });
            this.AddItem(new SelectListItem() { Text = "300", Value = "300" });
            this.AddItem(new SelectListItem() { Text = "400", Value = "400" });

        }

        public TaskExperienceValueCollectionCreator(int defaultValue)
        {
            this.AddItem(new SelectListItem() {Text="100",Value="100" ,Selected=defaultValue==100 });
            this.AddItem(new SelectListItem() { Text = "200", Value = "200", Selected = defaultValue == 200 });
            this.AddItem(new SelectListItem() { Text = "300", Value = "300", Selected = defaultValue == 300 });
            this.AddItem(new SelectListItem() { Text = "400", Value = "400", Selected = defaultValue == 400 });
        }
    }
}
